package au.com.betaversion.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import au.com.betaversion.domain.View;

public interface ViewRepository extends MongoRepository<View, String> {

	@Query("{ 'photoId' : ?0 }")
	List<View> findAllByPhoto(String id);
	
}
